package org.example.service.domain;

import org.example.domain.dto.RegisterDto;
import org.example.domain.dto.SysUserDto;
import org.example.domain.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.domain.vo.LoginResultVo;

import java.io.IOException;

/**
* @author YINDINGJIE
* @description 针对表【sys_user(系统用户表)】的数据库操作Service
* @createDate 2023-11-29 13:55:50
*/
public interface SysUserService extends IService<SysUser> {
    LoginResultVo loginResult(Long userId,Integer loginType);

    SysUser selectSysUserById(Long userId);

    LoginResultVo registerByThirdParity(String socialId, String uuid) throws IOException;

    /**
     * 获取当前登录的用户
     * @return
     */
    SysUserDto getLoginUserInfo();

    SysUserDto selectUserDtoByUserId(Long userId);

    void register(RegisterDto registerDto);

    SysUserDto selectUserInfoByUserSid(Long userId);

    SysUser selectByAccountAndLoginType(String account, Integer loginType);
    
}
